import axios from 'axios'
export default {
  data() {
    return {
      baseURL: 'http://43.138.15.137:7000/api/private/v1',
      token: localStorage.getItem('token')
    }
  },
  methods: {
    request(options) {
      options.url = this.baseURL + options.url
      options.headers = {
        'Authorization': this.token
      }
      return axios(options)
    }
  }
}